//
//  HIRootViewController.swift
//  Health_Infomation
//
//  Created by 林帆 on 2017/8/17.
//  Copyright © 2017年 林帆. All rights reserved.
//

import UIKit
import SnapKit

class HIRootViewController: UIViewController , HINavigationBarDelegate{

    lazy var _NavBar = HINavigationBar(title: "健康资讯")
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.white
        ConfigNavUI()

    }
    
    func ConfigNavUI() {
        self.navigationController?.isNavigationBarHidden = true
        _NavBar.NavDelegate = self
        view.addSubview(_NavBar)
        _NavBar.snp.makeConstraints { (make) in
            make.top.left.right.equalTo(self.view)
            make.height.equalTo(kTopUsuallyHeight)
        }
    }

    func HINavigationBackVC() {
        if self.navigationController?.viewControllers.count != 1 {
            self.navigationController?.popViewController(animated: true)
        }
    }
    
    func HINavigationPushVC() {
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

}
